package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Collections;
import java.util.List;

/**
 * @Description:
 * @Create by: wanglei
 * @Date: 2021/11/7 11:21
 */
@Document(collection = "soul")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Soul implements java.io.Serializable{

    private ObjectId id; //主键id，也是问卷id
    private String name; //问卷名称
    private String cover; //问卷封面的url地址
    private String level; //问卷级别（初级,中级,高级）
    private Integer star; //问卷星别（例如：2颗星，3颗星，5颗星）
    //private List<Question> questions = Collections.emptyList(); //试题列表
}
